<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		window.onload = function(){
			//注意是先加问号参数再加hash
			//例如 ?a=b#a
			//var url = location.pathname;
			//url +='?a=b#a';
			var b = "asd"
			location.search = '?a='+b;
			location.hash = '#a';
		}
	</script>
</html>
